<template>
  <div class="test-container">
    <Loading v-if="isShow" />
    <button @click="isShow = !isShow">点击显示隐藏</button>
  </div>
</template>

<script>
import Loading from "./index.vue";
export default {
  components: {
    Loading,
  },
  data() {
    return {
      isShow: true,
    };
  },
};
</script>

<style lang="less" scoped>
.test-container {
  position: relative;
}
</style>